import os,math

files=os.listdir()
files.remove('distribute_files.py')
groups=math.ceil(len(files)/50)
for i in range(groups):
    os.mkdir('group_{}'.format(i+1))
for file in files:
    group_number=files.index(file)//50+1
    os.rename('./{}'.format(file),'./group_{}/{}'.format(group_number,file))
